﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Administracion;
using Generico.Coneccion;

namespace CienciaYDeporte.Administracion
{
    public partial class SQLCONSOLA : System.Web.UI.Page
    {

        protected void Button1_Click(object sender, EventArgs e)
        {
            try
            {
                var cn = new ClsConeccion();
                cn.Abrir();
                cn.EjecutarSql(TextBox1.Text);
                cn.Cerrar();
            }
            catch (Exception ex)
            {
                TextBox2.Text = ex.Message;
            }
            
        }
    }
}
